package com.zmn.oms.common.dto;

import com.zmn.common.constant.GlobalConsts;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 类描述：订单修改
 *
 * @author wangxiaokun
 * @since 2021/04/14 18:29
 */
@Data
@ToString
@ApiModel("操作信息")
public class OrderWorkModifyOperator implements Serializable {

    private static final long serialVersionUID = -5312281156558280635L;

    /**
     * 客户端IP
     */
    @ApiModelProperty("客户端IP")
    private String operatorIP;

    /**
     * 操作者类型
     *
     * @see GlobalConsts#OPERATE_USER_TYPE_SYSTEM
     */
    @ApiModelProperty(value = "操作者类型", required = true)
    @NotNull(message = "操作者类型不能为空")
    private Integer operatorType;

    /**
     * 操作者ID
     */
    @ApiModelProperty(value = "操作者ID", required = true)
    @NotNull(message = "操作者id不能为空")
    private Long operatorId;

    /**
     * 操作者
     */
    @ApiModelProperty(value = "操作者", required = true)
    @NotNull(message = "操作人不能为空")
    private String operator;

    /**
     * 操作备注
     */
    @ApiModelProperty("操作备注")
    private String operatorRemark;
}
